<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" >
<head>
<meta charset="utf-8">
<title>组群聊-群聊页</title>
<link href="../c/base.css" rel="stylesheet" type="text/css">
<link href="../c/toefl.css" rel="stylesheet" type="text/css">
</head>

<body>


<div class="doc1180 fn-clear">
	<div class="crumbs_patch" th:switch="${session.sess_groupdetail.group_type}">
        <a href="###" th:case="1">同城考试群</a>
        <a href="###" th:case="2">考试场次群</a>
        <a href="###" th:case="3">名师学堂群群</a>
        <a href="###" th:case="4">名师备考群</a>》
        <a href="###" th:text="${session.sess_groupdetail.group_name}"></a>》
        <span>群聊</span>
	</div>
    <div class="qzl_CyTop">
    	<div class="qzl_CyInfo">
        	<ul>
            	<li class="qzl_CyInfoLeft"><div class="qzl_CyInfoPic"><img th:src="${session.sess_groupdetail.img_url}"/></div></li>
                <li class="qzl_CyInfoMid">
                	<div class="qzl_CyInfoMain">
                    	<h3 th:text="${session.sess_groupdetail.group_name}"></h3>
                        <div class="qzl_CyInfoTime"><span>建群时间:[[${#dates.format(session.sess_groupdetail.create_time,'yyyy-MM-dd')}]]</span>|<span><b class="blue">[[${session.sess_groupdetail.count}]]</b>人已加入此群</span></div>
                        <div class="qzl_CyInfoWz"></div>
                    </div>
                </li>
                <li class="qzl_CyInfoRight">
                    <a class="qzl_CyInfoBut" th:href="@{/tochat(id=${session.sess_groupdetail.group_id})}">进群 Say Hi</a>
                    <div class="qzl_CyInfoOut">
                        <div th:if="${session.loginMessage =='user'}" style="display: inline">
                        <a th:href="@{/eixtGroup(gid=${session.sess_groupdetail.group_id},uid=${session.sess_user.user_id})}" >退出该群</a>
                        </div>
                        <div th:if="${session.loginMessage =='teacher'}" style="display: inline">
                        <a th:href="@{/destoryGroup(gid=${session.sess_groupdetail.group_id})}" >解散该群</a>
                        </div>
                    </div>
                </li>
            </ul>
            <dl class="qzl_CyInfoDl">
            	<dt>群介绍</dt>
                <dd th:text="${session.sess_groupdetail.group_desc}"></dd>
            </dl>
            <dl class="qzl_CyInfoDl">
            	<dt>群规则</dt>
                <dd th:text="${session.sess_groupdetail.group_rule}"></dd>
            </dl>
        </div>
    </div>
    <div class="fn-clear">
    	<div class="qzl_CyTeamLeft">
            <div class="qzl_CyTeam">
                <div class="qzl_CyTeamTitle"><h3>管理员</h3></div>
                <div class="qzl_CyTeamBody">
                    <ul th:each=" t:${session.sess_groupadmins}" >
                        <li th:each="u: ${t.user}">
                            <div class="qzl_CyTeamPic"><img th:src="${u.img_url}"></div>
                            <div class="qzl_CyTeamName" th:text="${u.login_name}"></div>
                        </li>
                    </ul>
                </div>
            </div> 
        </div>
        
    </div>
    <div class="qzl_CyTeam">
    	<div class="qzl_CyTeamTitle"><h3>群成员</h3></div>
        <div class="qzl_CyTeamBody" >
            <ul class="qzl_CyTeam1200" th:each=" t:${session.sess_groupusers}" >
                <li th:each="u: ${t.user}">
                    <div class="qzl_CyTeamPic"><img th:src="${u.img_url}"></div>
                    <div class="qzl_CyTeamName" th:text="${u.login_name}"></div>
                </li>
            </ul>
        </div>
    </div>
</div>

</body>
</html>
